# @Version : 1.0
# @Author  : 刘宇
# @File    : 31_break_exercise.py
# @Time    : 2025/10/8 15:55

change = 3

for i in range(1, 4):
    name = input("请输入用户名：")
    password = input("请输入密码：")
    change-=1
    if name == "刘" and password == "888":
        print("登陆成功!")
        break
    else:
        print(f"你还有{change}次登录机会")
